<template>
  <div class="container">
      <div v-for="item in list">
        <div style="height: 30rpx;"></div>
        <div class="flex">
          <div>{{ item }}年 年度报告</div>
          <div class="look" @click="look(item)">查看报告</div>
        </div>
        <div style="height: 30rpx;"></div>
        <u-line color="#ffffff"></u-line>
      </div>
  </div>
</template>
<script>
import { annualList } from '../api/api.js'
export default {
  data() {
    return {
        list:[]
    };
  },
  methods: {
    // 年度报告
   look(i){
    uni.setStorageSync('reportYear', i)
    uni.navigateTo({
      url:`/pagesScreen/index/pagesDriverReport`
    })
   }
  },
  onShow(){
    annualList().then(res=>{
      console.log(res.data,'list');
      this.list = res.data.data;
    })
  }
};
</script>
<style lang="scss">
.container {
  height: 100vh;
  width: 100vw;
  background: #f3f3f3;
  color: #000000;
  overflow-y: scroll;
}
.look {
  padding: 10px;
  color: #fff;
  background: #000000;
  border-radius: 5px;
  width: 20%;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.flex{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  margin-left: 5%;
}
</style>
